package org.example.entity.currency;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.entity.BaseEntity;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_currency_exchange_rate")
public class CurrencyExchangeRateEntity  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 主货币英文
     */
    private String currencyMasterEn;

    /**
     * 主货币id
     */
    private Long currencyMasterId;

    /**
     * 子货币英文
     */
    private String currencySlaveEn;

    /**
     * 子货币id
     */
    private Long currencySlaveId;


    /**
     * 是否推荐0不推荐，1推荐
     */
    private Integer isRecommend;


    /**
     * 主汇率
     */
    private BigDecimal masterExchangeRate;


    /**
     * 子汇率
     */
    private BigDecimal slaveExchangeRate;
}
